/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.cursojava.client;

import br.com.cursojava.client.icones.ExemploIcones;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;


/**
 *
 * @author p1520009
 */
public class BaseGWT extends ContentPanel {
    public static ExemploIcones ICONES;
    private ContentPanel cpNorte = new ContentPanel();
    private ContentPanel cpSul = new ContentPanel();
    private ContentPanel cpLeste = new ContentPanel();
    private ContentPanel cpOeste = new ContentPanel();
    private ContentPanel cpCentro = new ContentPanel();

    private BorderLayoutData bldNorte = new BorderLayoutData(LayoutRegion.NORTH, 100, 100, 200);
    private BorderLayoutData bldSul = new BorderLayoutData(LayoutRegion.SOUTH, 100, 100, 200);
    private BorderLayoutData bldLeste = new BorderLayoutData(LayoutRegion.EAST, 100, 100, 200);
    private BorderLayoutData bldOeste = new BorderLayoutData(LayoutRegion.WEST, 100, 100, 200);
    private BorderLayoutData bldCentro = new BorderLayoutData(LayoutRegion.CENTER);

    public BaseGWT(){
        bldNorte.setCollapsible(true);
        bldNorte.setSplit(true);
        bldLeste.setCollapsible(true);
        bldLeste.setSplit(true);
        bldOeste.setCollapsible(true);
        bldOeste.setSplit(true);
        bldSul.setCollapsible(true);
        bldSul.setSplit(true);

        setLayout(new BorderLayout());
        add(cpNorte, bldNorte);
        add(cpSul, bldSul);
        add(cpLeste, bldLeste);
        add(cpOeste, bldOeste);
        add(cpCentro, bldCentro);

    }

    /**
     * @return the cpNorte
     */
    public ContentPanel getCpNorte() {
        return cpNorte;
    }

    /**
     * @return the cpSul
     */
    public ContentPanel getCpSul() {
        return cpSul;
    }

    /**
     * @return the cpLeste
     */
    public ContentPanel getCpLeste() {
        return cpLeste;
    }

    /**
     * @return the cpOeste
     */
    public ContentPanel getCpOeste() {
        return cpOeste;
    }

    /**
     * @return the cpCentro
     */
    public ContentPanel getCpCentro() {
        return cpCentro;
    }

    /**
     * @return the bldNorte
     */
    public BorderLayoutData getBldNorte() {
        return bldNorte;
    }

    /**
     * @param bldNorte the bldNorte to set
     */
    public void setBldNorte(BorderLayoutData bldNorte) {
        this.bldNorte = bldNorte;
    }

    /**
     * @return the bldSul
     */
    public BorderLayoutData getBldSul() {
        return bldSul;
    }

    /**
     * @return the bldLeste
     */
    public BorderLayoutData getBldLeste() {
        return bldLeste;
    }

    /**
     * @return the bldOeste
     */
    public BorderLayoutData getBldOeste() {
        return bldOeste;
    }

    /**
     * @return the bldCentro
     */
    public BorderLayoutData getBldCentro() {
        return bldCentro;
    }
}